#include "variable_args.h"

int variable_args() {
    //! 统计可变参数的个数
    count_args();
    count_args(1);
    count_args(1, 3);
    count_args(1, 2, 3);

    //! 2. 包展开
    printArgs(0, 1, 2, 3, 4);
    expand(0, 1, 2, 3, 4);


    //! 3. 可变参数模板类
    std::cout <<  Sum<int, double, float>::value  << std::endl;    // 16

    ExpandArgs<int, double, char> args(1, 2.2, 'a');
    args.process();

    return 0;
}
